package com.example.comsys.service;

import com.example.comsys.model.Department;
import java.util.List;

/**
 * department service fun def
 *
 * @author wjh
 * @date 2020/1/2, 周四
 */
public interface DepartmentService {

  /**
   * get department info by depart id
   *
   * @param id id
   * @return {@link Department}
   */
  Department getDepartmentById(long id);

  /**
   * batch query department
   *
   * @param ids department ids
   * @return department
   */
  List<Department> batchQueryDepartments(Long... ids);

  /**
   * 查询所有的部门
   *
   * @return department
   */
  List<Department> queryAll();
}
